<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>订单列表</title>
</head>
<body>
<div th:include="html/common/IncludeTop :: IncludeTop"></div>
<div class="Order" align="center">
    <h2>My Orders</h2>
    <table class="table-2 secondTable">
        <tr>
            <th>Order ID</th>
            <th>Date</th>
            <th>Total Price</th>
        </tr>

        <tr th:each="order: ${session.orderList}">

                <td th:text="${order.orderId}"><a th:href="@{viewOrder?orderId=${order.orderId}}"></a>
                </td>
                <td th:text="${#dates.format(${order.orderDate},'yyyy/MM/dd hh:mm:ss')}" >
                </td>
                <td th:text="${#numbers.formatCurrency(${order.totalPrice})}" >
                </td>
            </tr>
        </th:each>
    </table>
</div>
</body>
</html>